#pragma once

#include "ApproachDrawer.h"

class CApproachDrawerHolder
{
public:
	CApproachDrawerHolder(void);
	virtual ~CApproachDrawerHolder(void);

	void Draw(CDC *pCdc, int nWidth, int nHeight) const;
	void Clean();
	void Load(ListPtrApproachs &ListApprchs, const CGridParam &gridParam);
	bool Append(CApproach::Ptr pApproach);
	const CApproachDrawer::Ptr GetNearest(double dx, double dy, double *dDist) const;
protected:
	mutable CCriticalSection	m_csList;
	CApproachDrawer::ListPtr	m_listPtrAppr;
	CGridParam					m_gridParam;
};
